﻿@model List<SuperiorModel.Api_SureOrderModel>
@{
    ViewBag.Title = ViewBag.Title;
    Layout = "~/Views/Shared/_Layout.cshtml";
    var spid = Request["spid"];
    var said = Request["said"];
}

<style>
    .weui-cell__hd.cat-check {
        margin-top: 0px;
    }

    .weui-media-box__hd {
        display: inline-block
    }
</style>
<header class="wy-header">
    <div class="wy-header-icon-back"><a href="javascript:history.go(-1)"><span></span></a></div>
    <div class="wy-header-title">确认订单</div>
</header>
<input type="hidden" value="@ViewHelper.ConvertJson(Model)" id="hidden_pModel" />
<div class="weui-content">
    <div class="wy-media-box weui-media-box_text address-select">
        <div class="weui-media-box_appmsg">
            <div class="weui-media-box__hd proinfo-txt-l" style="width:20px;"><span class="promotion-label-tit"><img src="/Content/images/icon_nav_city.png" /></span></div>
            <div class="weui-media-box__bd">
                <a href="/ConSignee/ConSigneeList?spid=@spid&said=@said" class="weui-cell_access" id="address_msg">
                    @*<span>点击设置地址</span>*@
                    @*<h4 class="address-name"><span>任彦琛</span><span>13854652512</span></h4>
                    <div class="address-txt">颐高上海街对面朗润大厦1801</div>*@
                </a>
            </div>
            <div class="weui-media-box__hd proinfo-txt-l" style="width:16px;"><div class="weui-cell_access"><span class="weui-cell__ft"></span></div></div>
        </div>
    </div>
    <div class="wy-media-box weui-media-box_text">
        <div class="weui-media-box__bd">
            @foreach (var item in Model)
            {
                <div class="weui-media-box_appmsg ord-pro-list">
                    <div class="weui-media-box__hd">
                        <a href="/Product/Detail?spid=@spid&said=@said&id=@item.ProductId">
                            <img class="weui-media-box__thumb" src="@item.SkuDetail.ImgPath" alt="">
                        </a>
                    </div>
                    <div class="weui-media-box__bd">
                        <h1 class="weui-media-box__desc"><a href="/Product/Detail?spid=@spid&said=@said&id=@item.ProductId" class="ord-pro-link">@item.SkuDetail.Brand @item.SkuDetail.ProductName</a></h1>
                        @if (item.SkuDetail.SkuType == 1)
                        {
                            <p class="weui-media-box__desc">规格:@item.SkuDetail.ProductName</p>
                        }
                        else
                        {
                            <p class="weui-media-box__desc">规格:@item.SkuDetail.ProppetyCombineName</p>
                        }

                        <div class="clear mg-t-10">
                            <div class="wy-pro-pri fl">¥<em class="num font-15">@item.SkuDetail.SallPrice</em> </div>
                            <div class="pro-amount fr">X @item.SaleNum</div>
                        </div>
                    </div>
                </div>
            }
            
        </div>
    </div>
    <div class="weui-panel">
        <div class="weui-panel__bd">
            <div class="weui-media-box weui-media-box_small-appmsg">
                <div class="weui-cells">
                    <div class="weui-cell weui-cell_access">
                        <div class="weui-cell__hd weui-cell_primary"><label class="weui-label wy-lab">留言备注</label></div>
                        <div class="weui-cell__bd weui-cell_primary">
                            <textarea class="weui-textarea" id="txt_remark"></textarea>
                        </div>
                    </div>
                    <div class="weui-cell weui-cell_access" href="javascript:;">
                        <div class="weui-cell__hd weui-cell_primary"><label class="weui-label wy-lab">优惠券</label></div>
                        <div class="weui-cell__bd weui-cell_primary" id="coupon_div">
                                
                           
                        </div>
                    </div>
                    <div class="weui-cell weui-cell_access" href="javascript:;">
                        <div class="weui-cell__bd weui-cell_primary">
                            <p class="font-14"><span class="mg-r-10">商品金额</span><span class="fr txt-color-red">￥<em class="num" id="product_amount">@Model.Sum(p=>p.SaleNum*p.SkuDetail.SallPrice)</em></span></p>
                        </div>
                    </div>
                    <div class="weui-cell weui-cell_access" href="javascript:;">
                        <div class="weui-cell__bd weui-cell_primary">
                            <p class="font-14"><span class="mg-r-10">优惠金额</span><span class="fr txt-color-red">￥<em class="num" id="coupon_amount">0</em></span></p>
                        </div>
                    </div>
                    <div class="weui-cell weui-cell_access" href="javascript:;">
                        <div class="weui-cell__bd weui-cell_primary">
                            <p class="font-14"><span class="mg-r-10">运费金额</span><span class="fr txt-color-red">￥<em class="num" id="ship_amount">0</em></span></p>
                        </div>
                    </div>
                    <a class="weui-cell weui-cell_access" href="javascript:;">
                        <div class="weui-cell__bd weui-cell_primary">
                            <p class="font-14"><span class="mg-r-10">支付方式</span><span class="sitem-tip fr">微信支付</span></p>
                        </div>
                        
                    </a>
                   
                </div>
            </div>
        </div>
    </div>  
    
  
    <div class="wy-media-box weui-media-box_text">
        <div class="mg10-0 t-r">总金额：<span class="wy-pro-pri mg-tb-5">¥<em class="num font-20" id="total_amount">@Model.Sum(p => p.SaleNum * p.SkuDetail.SallPrice)</em></span></div>
        <div class="mg10-0"><a href="javascript:;" id="btn_createOrder" class="weui-btn weui-btn_z">确认支付</a></div>
       
    </div>
</div>

<script src="~/scripts/Order/SureOrder.js?v=23"></script>
<script src="~/scripts/Common/ShopCartManager.js"></script>

<script>
    SureOrderClass.Instance.Init();
</script>